package sugarbind_input

class OrganismController {

    def scaffold = true
	
	def ddlareas = {}
	
	def findAreas = {
		println("params organism : " +params.organism.id + " " + Organism.get(params.organism.id))
		
		def organism = Organism.get(params.organism.id)
		
		render(template: 'ddlAreas', model:  [areas : organism.areas])
	
	  }
}
